package tangyaxin.www.saoerweima;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import db.TestDb;

/**
 * Created by Administrator on 2016/6/20.
 */
public class ActivityDbTest extends Activity {
    private TestDb testDb;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_db_test);
        testDb=new TestDb(this,"BookStore.db",null,1);
        Button button1= (Button) findViewById(R.id.db_test_btn);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                testDb.getWritableDatabase();
            }
        });
    }
}
